package com.shangke.corejava.ch7.homework2;

public class English extends Student {
	private double lecture;

	public English() {

	}

	public English(int studentNo, String name, String sex, int age, double midtermGrade, double finalExamGrade,
			double lecture) {
		super(studentNo, name, sex, age, midtermGrade, finalExamGrade);
		this.lecture = lecture;
	}

	public double getLecture() {
		return lecture;
	}

	public void setLecture(double lecture) {
		this.lecture = lecture;
	}
	
	//获取评定成绩
	public double gradeAssessing() {
		double grade=lecture*0.5+getMidtermGrade()*0.25+getFinalExamGrade()*0.25;
		return lecture;
		
	}

}
